<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="telephone=no" name="format-detection" />
		<title>用户中心 - {$categorys[$id]['title']}</title>
		<base href="{URL}" />
		<link href="static/css/member.css" rel="stylesheet" />
		<link href="static/css/usercenter.css" rel="stylesheet" tii="usercenter" />
		<script src="static/js/jquery.min.js"></script>
		<style type="text/css">
			.rulelist{display:none;}
			.open, .w-op{display:none;}
			.ui-main{ min-width:800px;}
			.con_box{ float:none;}
			.con_box img{ max-width:100%;}
			.con_box table{ width:100%;}
		</style>
	</head>
	
	<body class="bg">
		<div class="head">
			<div class="logo-wrap"></div>
			<div class="top_menu">
				<div class="clear">
					<a href="{U('/lottery/view',['id'=>current($lottery)['id']])}" id="gameListBtn" class="games" title="游戏大厅"><span>游戏大厅</span></a>
					<a href="./" class="getout" title="返回首页"><span>返回首页</span></a>
					<a href="https://v88.live800.com/live800/chatClient/chatbox.jsp?companyID=801475&configID=5925&jid=4583178362&s=1" target="_blank" class="service" title="在线客服">
						<span class="new-msg" id="NewMsg">在线客服</span>
					</a>
					<a href="{U('/news',['id'=>9])}" class="rule" id="Rule" title="规则说明"><i></i><span class="rule_description">规则说明</span></a>
					<a href="{U('/news',['id'=>4])}" class="help" title="游戏帮助"><i></i><span class="play_help">游戏帮助</span></a>
					{if $_uid}
					<a title="登出账号" class="btn-login-out" href="{U('member/login/logout')}"><span>登出账号</span></a>
					{else}
					<a title="登录账号" class="btn-login-in" data-bind="click:login" href="{U('member/login')}"><span>登录账号</span></a>
					{/if}
				</div>
				
				<!--下拉游戏选择--->
				<div class="menu-child" style="display:none;" id="lot_sec_menu">
					<div class="gamelist clear">
						<div class="official_play">
							<div class="gamelist_tit clear">
								<h1 class="red_style">官方玩法</h1>
							</div>
							<div class="high_wrap">
								<div class="gamelist_l">
									<ul>
										{loop $lottery as $val}
											{if !$val['credit']}
											<li>
												<a class="game_{$val['id']}" href="{U('/lottery/view',['id'=>$val['id']])}"><font>{$val['title']}</font></a>
											</li>
											{/if}
										{/loop}
									</ul>
								</div>
							</div>

						</div>
						<div class="cut-line"></div>
						<div class="credit_play">
							<div class="gamelist_tit clear">
								<h1 class="orange_style">信用玩法</h1>
							</div>
							<div class="high_wrap">
								<div class="gamelist_r">
									<ul>
										{loop $lottery as $val}
											{if $val['credit']}
											<li>
												<a class="game_{$val['id']}" href="{U('/lottery/view',['id'=>$val['id']])}"><font>{$val['title']}</font></a>
											</li>
											{/if}
										{/loop}
									</ul>
								</div>
							</div>
						</div>
					</div>
					<div class="triangles_back"></div>
				</div>
				<!--下拉游戏选择 end--->
			</div>
		</div>
		<div class="container clear">
			<div class="side-left helpMenu" id="helpMenu">
				<ul class="side_menu">
					{loop $categorys as $val}
					<li{if $id != 9 && $id == $val['id']} class="active"{/if}>					
						{if $val['id'] == 9}
							<a href="javascript:;" class="sidem_b" id="rulelist-a"><span>{$val['title']}</span></a>
							<ul class="rulelist">
								{loop $lottery as $val2}
								<li data-id="{$val2['id']}"><a href="{U('/news/view',['cid'=>$val2['id']])}"><i class="play-ico {if !$val2['credit']} official-ico{/if}"></i><span>{$val2['title']}</span></a></li>
								{/loop}
							</ul>
						{else}
							<a href="{U('/news',['id'=>$val['id']])}" class="sidem_b">{$val['title']}</a>
						{/if}
					</li>
					{/loop}			   
					<li class=agent>
						<a href="/Help/Agent" class="sidem_b">代理加盟</a>
					</li>
					<li style="display:none">
						<a href="/Help/about" class="sidem_b">公司简介</a>
					</li>
				</ul>
			</div>

			<div class="ui-main clear">
				<div class="con_box rule-con">
					<div class="help-con">
						{loop $data as $key => $val}
							<div class="help-head">{_e $key + 1}、{$val['title']}</div>
							<div class="help-main">{$val['content']}</div>
						{/loop}					
					</div>
				</div>
			</div>
		</div>
		<script>
			var _menutime;
			$().ready(function(){
				$('#rulelist-a').click(function(){
					$(this).siblings('ul').toggle();
				});
				
				$("#gameListBtn,#lot_sec_menu").hover(function () {
					$('#lot_sec_menu').stop(true, true).slideDown(300);
					clearTimeout(_menutime);
				}, function () {
					_menutime = setTimeout(function () {
						$('#lot_sec_menu').stop().slideUp(100);
					}, 300);
				});
			});
		</script>
	</body>
</html>